<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="urn:fleXdoc" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:fleXdoc" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:complexType name="ValueOf">
		<xs:attribute name="path" type="xs:string" use="required"/>
		<xs:attribute name="format" use="optional">
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:enumeration value="Text"/>
					<xs:enumeration value="Numeric0"/>
					<xs:enumeration value="Numeric2"/>
					<xs:enumeration value="Numeric4"/>
					<xs:enumeration value="NumericCustom"/>
					<xs:enumeration value="DateTime"/>
					<xs:enumeration value="DateTimeLong"/>
					<xs:enumeration value="DateTimeShort"/>
					<xs:enumeration value="DateTimeCustom"/>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="formatString" type="xs:string" use="optional"/>
	</xs:complexType>
	<xs:element name="ValueOf" type="ValueOf"/>
	<xs:complexType name="ForEach" mixed="true">
		<xs:sequence>
			<xs:any minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="path" type="xs:string" use="required"/>
		<xs:attribute name="sortSelect" type="xs:string" use="optional"/>
		<xs:attribute name="sortOrder" use="optional">
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:enumeration value="ascending"/>
					<xs:enumeration value="descending"/>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="sortDataType" use="optional">
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:enumeration value="text"/>
					<xs:enumeration value="number"/>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="sortCaseOrder">
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:enumeration value="upper-first"/>
					<xs:enumeration value="lower-first"/>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
	</xs:complexType>
	<xs:element name="ForEach" type="ForEach"/>
	<xs:complexType name="UseContext" mixed="true">
		<xs:sequence>
			<xs:any minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="path" type="xs:string" use="required"/>
	</xs:complexType>
	<xs:element name="UseContext" type="UseContext"/>
	<xs:complexType name="IncludeTemplate">
		<xs:attribute name="uri" type="xs:string" use="required">
			<xs:annotation>
				<xs:documentation>Relative to parent template</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="absolutePath" type="xs:string" use="optional">
			<xs:annotation>
				<xs:documentation>XPath-query to select the context-node for the template. Default is root-element. NB: A UseContext-element does not work on IncludeTemplate!</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	<xs:element name="IncludeTemplate" type="IncludeTemplate"/>
	<xs:complexType name="ImportTemplate">
		<xs:attribute name="uri" type="xs:string" use="required">
			<xs:annotation>
				<xs:documentation>Relative to parent template</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="absolutePath" type="xs:string" use="optional">
			<xs:annotation>
				<xs:documentation>XPath-query to select the context-node for the template. Default is root-element. NB: A UseContext-element does not work on ImportTemplate!</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	<xs:element name="ImportTemplate" type="ImportTemplate"/>
	<xs:complexType name="If" mixed="true">
		<xs:sequence>
			<xs:any minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="test" type="xs:string" use="required"/>
	</xs:complexType>
	<xs:element name="If" type="If"/>
	<xs:complexType name="ImgOf">
		<xs:attribute name="path" type="xs:string" use="optional">
			<xs:annotation>
				<xs:documentation>xpath-query to the node containing the base64-encoded image data. When specified AND a matching node was found, then 'uri' is ignored.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="data" type="xs:string" use="optional">
			<xs:annotation>
				<xs:documentation>Don't use. For internal use by FlexDoc only.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="uri" type="xs:string" use="optional">
			<xs:annotation>
				<xs:documentation>Uri to an image resource. Only used when 'path'was not specified or did not match with a node.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	<xs:element name="ImgOf" type="ImgOf"/>
</xs:schema>
